﻿
GET 
  FILE='C:\expats\Partisanship.Invitation\Replication\Mex.imm.2008.Tab.3-6.sav'. 
DATASET NAME DataSet1 WINDOW=FRONT.

compute inwave2=uspid2.
recode inwave2 (lo thru hi=1)(sysmis=0).
variable label inwave2 'dummy: surveyed in the post-election wave'.

** the commands below replicate Table 3.

crosstabs candeval1 by ad22 / cells count column.
compute ad_obama=ad22.
compute ad_mccain=ad22.
recode ad_obama (1=1)(else=0).
recode ad_mccain (2=1)(else=0).

NOMREG candeval1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

crosstabs ptyeval1 by ad22 / cells count column.

NOMREG ptyeval1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

** the commands below replicate the top part of Table 4.

crosstabs uspid2 by ad22 / cells count column.

NOMREG uspid2 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

temporary.
select if (inwave2=1).
crosstabs uspid1 by ad22 / cells count column.

temporary.
select if (inwave2=1).
NOMREG uspid1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

** the commands below replicate Table 5.


crosstabs candmex1 by ad22 / cells count column.

NOMREG candmex1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

crosstabs ptylatino1 by ad22 / cells count column.

NOMREG ptylatino1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.

crosstabs ptyimm1 by ad22 / cells count column.

NOMREG ptyimm1 (BASE=LAST ORDER=ASCENDING) WITH ad_obama ad_mccain 
  /CRITERIA DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001) 
  /MODEL 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR) 
  /INTERCEPT=INCLUDE 
  /PRINT=LRT.




